const routes = () => {
  const router = [
    { path: '/login', component: '@/wrappers/Login/index' },
    {
      path: '/',
      component: '../layouts/BasicLayout',
      wrappers: ['@/wrappers/auth'],
      routes: [
        {
          path: '/',
          redirect: '/index',
        },
        {
          path: 'index',
          component: './main/index',
          name: '首页',
          title: '首页',
        },
        {
          path: 'list',
          name: '实体菜单',
          title: '实体菜单',
          routes: [
            {
              path: ':apiKey',
              name: '实体信息',
              title: '实体信息',
              component: './EnoadList/index',
            },
          ],
        },
        {
          path: 'swing',
          component: './Swing/index',
          name: '任务看板',
          title: '任务看板',
        },
        {
          path: 'xlsx',
          name: '汇总追踪',
          title: '汇总追踪',
          routes: [
            {
              path: 'index',
              name: '数据',
              title: '数据',
              component: './Xlsx/index',
            },
          ],
        },
        {
          path: 'track',
          name: '统计分析',
          title: '统计分析',
          routes: [
            {
              path: ':name',
              name: '统计分析设计',
              title: '统计分析设计',
              component: './Track/index',
            },
          ],
        },
        {
          path: 'files',
          component: './Files/index',
          name: '资源信息',
          title: '资源信息',
        },
      ],
    },

    {
      component: './404',
    },
  ];
  return router;
};
export default routes;
